<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTposInfosTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('tpos_infos', function (Blueprint $table) {
            $table->increments('id');
            $table->string('user_id')->nullable()->comment('用户ID');
            $table->string('openid')->default('')->comment('openid');
            $table->string('nickName')->default('')->comment('微信昵称');
            $table->string('avatarUrl')->default('')->comment('微信头像');
            $table->char('gender')->comment('性别');
            $table->timestamps();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('tpos_infos');
    }
}
